﻿using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.Application;
using Volo.Abp.AutoMapper;
using Volo.Abp.Modularity;

namespace Linker.TaskCenter
{
    [DependsOn(
        typeof(TaskCenterDomainModule),
        typeof(TaskCenterApplicationContractsModule),
        typeof(AbpDddApplicationModule),
        typeof(AbpAutoMapperModule)
    )]
    public class TaskCenterApplicationModule : AbpModule
    {
        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            context.Services.AddAutoMapperObjectMapper<TaskCenterApplicationModule>();
            context.Services.Configure<AbpAutoMapperOptions>(options =>
            {
                options.AddMaps<TaskCenterApplicationModule>();
            });
        }
    }
}